require("bblibs.utils")
require("util")
require("utils.loggerUtils")
require("utils.StringUtils")
require("FuZhai")
require("FuZhaiFJ")
require("GuanQia")
require("ShuYuan")
require("TongYong")
require("setting")

init("0", 0);
setScreenScale(fenBianLv.devX, fenBianLv.devY) --在540*960分辨率的手机中开发了脚本，要在720*1280的设备中运行 -
TongYong.tiShiQuYu()

TongYong.tiShiQuYuClose()


Setting.showUi()

function mainRun()
 while true do
            FuZhai.onlyZiChanRun()
        end

    if Setting.runType == Setting.runTypeZiChan then
        while true do
            FuZhai.onlyZiChanRun()
        end
    end

    if Setting.runType == Setting.runTypeFuZhai then
        while true do
            FuZhai.run()
        end
    end

    if Setting.runType == Setting.runTypeGuanQia then
        while true do
            GuanQia.run()
            mSleep(1000)
        end
    end

    if Setting.runType == Setting.runTypeQuanJu then

    end
end


sysLog(tostring(Setting.run))
sysLog(tostring(Setting.runType))

if Setting.run then
    mainRun()
end

